#include <logbase.h>

int function1()
{
    logdebugc("");
    return 0;
}
int function2()
{
    logdebugc("");
    return 0;
}
int function3()
{
    logdebugc("");
    return 1;
}
int function4()
{
    logdebugc("");
    return 1;
}

// if 一些问题
int main(int argc, char **argv)
{
    logdebugc("check pointer");
    if(function1() || function2())
    {
        logdebugc("do 1");
    }
    logdebugc("check pointer");
    if(function1() || function3())
    {
        logdebugc("do 1");
    }
    logdebugc("check pointer");
    if(function3() || function1())
    {
        logdebugc("do 1");
    }
    logdebugc("check pointer");
    if(function3() && function4())
    {
        logdebugc("do 2");
    }
    logdebugc("check pointer");
    if(function3() && function1())
    {
        logdebugc("do 2");
    }
    logdebugc("check pointer");
    if(function1() && function3())
    {
        logdebugc("do 2");
    }
    return 1;
}
